#!/bin/bash

function echoo()
{
    echo $1
}

Array=()

Array+=(1)
Array+=(2)
Array+=(3)

echo array: $Array
echo array[0]: ${Array[0]}
echo array[1]: ${Array[1]}
echo array[2]: ${Array[2]}
echo len: ${#Array[*]}
echo *: ${Array[*]}
echo *: "${Array[*]}"

echoo ${Array[*]}
echoo "${Array[*]}"

echo dict:

declare -A Dict
Dict=()
Dict+=([a]=1)
Dict+=([b]=2)
Dict+=([c]=3)
Dict+=([d]=4)
Dict+=([e]=5)
echo ${Dict[c]}
echo ${Dict[*]}
echo ${!Dict[*]}
for i in ${Dict[*]}; do
    echo val: $i
done
for i in ${!Dict[*]}; do
    echo key: $i
done
